package com.ttdc.assist;

//枚举辅助类( 由Msg的返回值来判断是否调用 )

public enum ErrEnum {
	
	//登录密码错误
	PASSWORD_LOGIN_ERROR("passwordLoginErr","账号或者密码错误，请重新输入！"),
		
	
    //账号错误
	NAME_LOGIN_ERROR("nameLoginErr","账号或者密码错误，请重新输入！"),
	
	//添加数据到数据库错误

	ADD_ERROR("addErr","添加错误，请重新确认封装的实体类！"),
	
	
	ROLE_ERROR("roleErr","用户类型错误，请重新选择！");
	
	
	
	
    
    private String errorCode;
    private String errorMessage;
    
    private ErrEnum(String errorCode, String errorMessage) {
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }
}
